const boardModel = require("../model/boardModel")

//获取事件的候选人列表
const getBoardListByEventId = async (req,res,next) => {
  try{
    const boardList = await boardModel.getBoardListByEventId(req.body.event_id);
    res.send({
      code: "200",
      msg: "查询候选人列表成功!",
      data:boardList
    })
  } catch (error){
    next(error)
  }
}

module.exports = {getBoardListByEventId}